﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
   public static class TableElements
   {
       public static string table()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("border: solid 1px #4b6c9e;");
           } if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("border: solid 1px #709A30;");
           }
           result.AppendLine("width: 100%;");
           result.AppendLine("border-collapse: collapse;");
           return result.ToString();
       }
       public static string table_td()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("border: solid 1px #4b6c9e;");
           } if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("border: solid 1px #709A30;");
           }
           result.AppendLine("padding: 5px;");
           return result.ToString();
       }
       public static string table_th()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("border: solid 1px #4b6c9e;");
               result.AppendLine("background-color: #4b6c9e;");
           } if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("border: solid 1px #709A30;");
               result.AppendLine("background-color: #709A30;");
           }
           result.AppendLine("color:#fff;");
           result.AppendLine("padding: 6px 5px;");
           result.AppendLine("text-align: left;");
           return result.ToString();
       }
       public static string table_th_a()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       public static string table_th_a_link()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       public static string table_th_a_hover()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       public static string table_th_a_visited()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       public static string table_th_a_active()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       public static string table_mastertable()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("padding: 0px;");
           result.AppendLine("margin: 0px;");
           result.AppendLine("width: 100%;");
           result.AppendLine("border-width: 0px;");
           return result.ToString();
       }
       public static string td_masterrighttd()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("padding: 0px;");
           result.AppendLine("margin: 0px;");
           result.AppendLine("vertical-align: top;");
           result.AppendLine("border-width: 0px;");
           return result.ToString();
       }
       public static string td_masterlefttd()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("padding: 0px;");
           result.AppendLine("margin: 0px;");
           result.AppendLine("vertical-align: top;");
           result.AppendLine("border-width: 0px;");
           result.AppendLine("width: 250px;");
           return result.ToString();
       }
       public static string th_rootfolder()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 40px;");
           return result.ToString();
       }
       public static string th_dableinput()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: right;");
           result.AppendLine("width: 50%;");
           return result.ToString();
       }
       public static string th_oneinput()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: right;");
           return result.ToString();
       }
       public static string th_editdelite()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 50px;");
           return result.ToString();
       }
       public static string th_folderfile()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 10px;");
           return result.ToString();
       }
       public static string th_filechangedate()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: center;");
           result.AppendLine("width: 150px;");
           return result.ToString();
       }
       public static string th_filesize()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 110px;");
           result.AppendLine("text-align: center;");
           return result.ToString();
       }
       public static string th_addrole()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: right;");
           result.AppendLine("vertical-align: middle;");
           return result.ToString();
       }
    }
}
